package com.liming.common.pojo.dto.stock;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author liming
 * @date 2025/1/21
 */
@Data
@Schema(description = "新增库存流水DTO")
public class AddStockFlowDTO {

    @Schema(description = "库存ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long stockId;

    @Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long productId;

    @Schema(description = "类型：1-入库，2-库存锁定，3-出库，4-库存解锁，5-退货", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer type;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer quantity;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "操作人ID")
    private String operatorId;

    @Schema(description = "备注")
    private String remark;
}
